/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package meteocal.entity;

import java.io.Serializable;

/**
 *
 * @author andrea
 */
public class InvitationKey implements Serializable{
    
    private String user;
    private Long event;
    
    public InvitationKey() {
    }
    
    @Override
    public boolean equals(Object other){
        if(other instanceof InvitationKey){
            InvitationKey entityKey = (InvitationKey) other;
            return entityKey.user.equals(this.user)
                    &&
                    entityKey.event.equals(this.event);
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}

